//--------------颜色选择器-----------------
dhtmlxColorPickerLangModules = {}; 
 
dhtmlxColorPickerLangModules['my-lang'] = {
    langname: 'my-lang',
    labelHue : "Hue",
    labelSat : "Sat", 
    labelLum : "Lum",
    labelRed : "Red", 
    labelGreen : "Green",
    labelBlue : "Blue",
    btnAddColor : "Add to Custom Colors",
    btnSelect : "Select",
    btnCancel : "Cancel"
};

dhtmlXCalendarObject.prototype.langData = {
    "en": {
        dateformat: "%Y-%m-%d",
        monthesFNames: ["January","February","March","April","May","June","July","August","September","October","November","December"],
        monthesSNames: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
        daysFNames: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
        daysSNames: ["Su","Mo","Tu","We","Th","Fr","Sa"],
        weekstart: 1
    }
};

jQuery(function($){
	//--------------scheduler------------------
	if(window.scheduler){
		scheduler.locale={
			date:{
				month_full:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
				month_short:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
				day_full:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
		    	day_short:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
		    },
		    labels:{
		    	dhx_cal_today_button:"Today",
		    	day_tab:"Day",
		    	week_tab:"Week",
		    	month_tab:"Month",
		    	new_event:"New conference",
				icon_save:"Save",
				icon_cancel:"Cancel",
				icon_details:"Details",
				icon_edit:"Edit",
				icon_delete:"Delete",
				confirm_closing:"",//Your changes will be lost, are your sure ?
				confirm_deleting:"Event will be deleted permanently, are you sure?",
				section_description:"Conference information",
				section_time:"Time period",
				full_day:"Full day",
				
				/*recurring events*/
				confirm_recurring:"----",
				section_recurring:"Repeat",
				button_recurring:"Enabled",
				button_recurring_open:"Disabled",
				button_edit_series: "----",
		        button_edit_occurrence: "----",
				
				/*agenda view extension*/
				agenda_tab:"Agenda",
				date:"Date",
				description:"Description",
				
				/*year view extension*/
				year_tab:"Year"
		    }
		};
		scheduler.__recurring_template='<div class="dhx_form_repeat"> <form> <div class="dhx_repeat_left"> <label><input class="dhx_repeat_radio" type="radio" name="repeat" value="day" />Daily</label><br /> <label><input class="dhx_repeat_radio" type="radio" name="repeat" value="week"/>Weekly</label><br /> <label><input class="dhx_repeat_radio" type="radio" name="repeat" value="month" checked />Monthly</label><br /> <label style="display:none;"><input class="dhx_repeat_radio" type="radio" name="repeat" value="year" />Yearly</label> </div> <div class="dhx_repeat_divider"></div> <div class="dhx_repeat_center"> <div style="display:none;" id="dhx_repeat_day"> <label><input class="dhx_repeat_radio" type="radio" name="day_type" value="d"/>Every</label><input class="dhx_repeat_text" type="text" name="day_count" value="1" />day<br /> <label><input class="dhx_repeat_radio" type="radio" name="day_type" checked value="w"/>Every workday</label> </div> <div style="display:none;" id="dhx_repeat_week"> Repeat every<input class="dhx_repeat_text" type="text" name="week_count" value="1" />week next days:<br /> <table class="dhx_repeat_days"> <tr> <td> <label><input class="dhx_repeat_checkbox" type="checkbox" name="week_day" value="1" />Monday</label><br /> <label><input class="dhx_repeat_checkbox" type="checkbox" name="week_day" value="4" />Thursday</label> </td> <td> <label><input class="dhx_repeat_checkbox" type="checkbox" name="week_day" value="2" />Tuesday</label><br /> <label><input class="dhx_repeat_checkbox" type="checkbox" name="week_day" value="5" />Friday</label> </td> <td> <label><input class="dhx_repeat_checkbox" type="checkbox" name="week_day" value="3" />Wednesday</label><br /> <label><input class="dhx_repeat_checkbox" type="checkbox" name="week_day" value="6" />Saturday</label> </td> <td> <label><input class="dhx_repeat_checkbox" type="checkbox" name="week_day" value="0" />Sunday</label><br /><br /> </td> </tr> </table> </div> <div id="dhx_repeat_month"> <label><input class="dhx_repeat_radio" type="radio" name="month_type" value="d"/>Repeat</label><input class="dhx_repeat_text" type="text" name="month_day" value="1" />day every<input class="dhx_repeat_text" type="text" name="month_count" value="1" />month<br /> <label><input class="dhx_repeat_radio" type="radio" name="month_type" checked value="w"/>On</label><input class="dhx_repeat_text" type="text" name="month_week2" value="1" /><select name="month_day2"><option value="1" selected >Monday<option value="2">Tuesday<option value="3">Wednesday<option value="4">Thursday<option value="5">Friday<option value="6">Saturday<option value="0">Sunday</select>every<input class="dhx_repeat_text" type="text" name="month_count2" value="1" />month<br /> </div> <div style="display:none;" id="dhx_repeat_year"> <label><input class="dhx_repeat_radio" type="radio" name="year_type" value="d"/>Every</label><input class="dhx_repeat_text" type="text" name="year_day" value="1" />day<select name="year_month"><option value="0" selected >January<option value="1">February<option value="2">March<option value="3">April<option value="4">May<option value="5">June<option value="6">July<option value="7">August<option value="8">September<option value="9">October<option value="10">November<option value="11">December</select>month<br /> <label><input class="dhx_repeat_radio" type="radio" name="year_type" checked value="w"/>On</label><input class="dhx_repeat_text" type="text" name="year_week2" value="1" /><select name="year_day2"><option value="1" selected >Monday<option value="2">Tuesday<option value="3">Wednesday<option value="4">Thursday<option value="5">Friday<option value="6">Saturday<option value="7">Sunday</select>of<select name="year_month2"><option value="0" selected >January<option value="1">February<option value="2">March<option value="3">April<option value="4">May<option value="5">June<option value="6">July<option value="7">August<option value="8">September<option value="9">October<option value="10">November<option value="11">December</select><br /> </div> </div> <div class="dhx_repeat_divider"></div> <div class="dhx_repeat_right"> <label><input class="dhx_repeat_radio" type="radio" name="end" checked/>No end date</label><br /> <label><input class="dhx_repeat_radio" type="radio" name="end" />After</label><input class="dhx_repeat_text" type="text" name="occurences_count" value="1" />occurrences<br /> <label><input class="dhx_repeat_radio" type="radio" name="end" />End by</label><input class="dhx_repeat_date" type="text" name="date_of_end" value="" /><br /> </div> </form> </div> <div style="clear:both"> </div>';
	}

});

var messages={};

messages.getMsg=function(key,params){
	if(params){
		var msg=this.getMsg(key);
		
		for ( var i = 0; i < params.length; i++) {
			msg=msg.replace("{"+i+"}",params[i]);
		}
		return msg;
	}else{
		return eval("messages['"+key+"']")||key;
	}
};

messages["confirm.useProfile"]="Are you sure use this conference profile?";
messages["confirm.tip"]="Are you sure do this operation?";
messages["confirm.hangup"]="Are you sure hang up these calls?";
messages["confirm.mute"]="Are you sure mute these calls?";
messages["confirm.cancelMute"]="Are you sure cancel these calls mute?";
messages["confirm.setLecture"]="Are you sure specify the caller as lecture?";
messages["confirm.cancelLecture"]="Are you sure cancel the conference lecture?";
messages["confirm.endConf"]="Are you sure end the conference?";
messages["confirm.pauseConf"]="Are you sure stop the conference?";
messages["noSelect.tip"]="Please select record.";
messages["oneSelect.tip"]="Please select single record only.";

messages["group.confirm.tip"]="All members in the group will be removed.Are you sure do this operation?";

messages["mcu.error.nameExist"]="{0} mcu was existed.";
messages["mcu.tip.local"]="Local mcu can not be modified or deleted.";

messages["error.exist"]="{0} was existed.";
messages["admin.tip.root.remove"]="Root user cannot be removed.";
messages["admin.error.nameExist"]="{0} was existed.";
messages["admin.tip.root.modify"]="Cannot modify root user.";

messages["account.error.nameExist"]="{0} was existed.";

messages["participant.drap.tip"]="Participant(s)";

messages["img.tip.mute"]="Mute";
messages["img.tip.speak"]="Speak";
messages["img.tip.incall"]="In Call";
messages["img.tip.registed"]="Registed";
messages["img.tip.online"]="Online";
messages["img.tip.lecture"]="Lecture";
messages["img.tip.record"]="VCR";
messages["img.tip.h239owner"]="H239 Owner";
messages["img.tip.chairperson"]="Chairperson";
messages["img.tip.micomute"]="Microphone Mute";
messages["img.tip.micspeak"]="Microphone Speak";
messages["img.tip.callout"]="Call Out";
messages["img.tip.callin"]="Call In";
messages["img.tip.network.offline"]="Offline";
messages["img.tip.network.good"]="Network Good";
messages["img.tip.network.medium"]="Network Medium";
messages["img.tip.network.bad"]="Networkd Bad";

messages["conf.ctrl.rx"]="rx";
messages["conf.ctrl.tx"]="tx";
